package app.server.project.cloud.random.dto.device;

import app.server.project.cloud.random.db.entity.DevStatusEntity;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.persistence.Column;
import lombok.Data;
import org.hibernate.annotations.Comment;

@Data
public class DevStatusDto {

    /**
     * 属性id
     * 有定义文件，需要找服务器端拿
     */
    private String attarId;
    /**
     * 属性值
     */
    private String attarVal;

    public static DevStatusDto of(DevStatusEntity entity){
        var ret=new DevStatusDto();
        BeanUtil.copyProperties(entity,ret,true);
        return ret;
    }
}
